package info.rongtong.service.impl;

import info.rongtong.domain.Account;
import info.rongtong.service.basic.BasicServiceImpl;
import info.rongtong.service.inter.AccountServiceInter;

public class AccountServiceImpl extends BasicServiceImpl implements
		AccountServiceInter {

	public Account checkUser(Account account) {
		String hql="From Account a where a.aloginName=? and a.apassword=?";
		Object[] paramtes = {account.getAloginName(),account.getApassword()};
		account = (Account) this.uniqueResult(hql, paramtes);
		return account;
	}
	
}
